Rhythm discrimination